package cn.edu.zafu.bigdata.x.xiejunjie.例4_2;

public class MyDate {
    private int day;
    private int month;
    private int year;

    public String getDate(){
        return day+"/"+month+"/"+year;
    }
    public int setDate(int a,int b,int c){
        if ((a>0 && a<=31) && (b>0 && b<=12)){
            day=a;
            month=b;
            year=c;
            return 0;
        }else{
            return -1;
        }
    }
}
